public class Player implements IObserver{
    private String name;

    public Player(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public String beAttacked(ControlCenter controlCenter) {
        controlCenter.notifyObserver(name);
        return this.name + "被攻击！";

    }

}
